import request from '@/utils/request'

// 查询生产基地用电记录列表
export function listProductionmeterday(query) {
  return request({
    url: '/productionProcess/productionmeterday/list',
    method: 'get',
    params: query
  })
}

// 查询生产基地用电记录详细
export function getProductionmeterday(id) {
  return request({
    url: '/productionProcess/productionmeterday/' + id,
    method: 'get'
  })
}

// 新增生产基地用电记录
export function addProductionmeterday(data) {
  return request({
    url: '/productionProcess/productionmeterday',
    method: 'post',
    data: data
  })
}

// 修改生产基地用电记录
export function updateProductionmeterday(data) {
  return request({
    url: '/productionProcess/productionmeterday',
    method: 'put',
    data: data
  })
}
export function checkProductionmeterday(data) {
  return request({
    url: '/productionProcess/productionmeterday/check',
    method: 'put',
    data: data
  })
}
// 删除生产基地用电记录
export function delProductionmeterday(id) {
  return request({
    url: '/productionProcess/productionmeterday/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getYD',
    method: 'get',
    params: query
  })
}
